<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
 .searchtag {display: inline;}
 .searchtag dd {
    color: #5C5C5C;
    background:#FEF9DE;
    display: inline;
    float: left;
    white-space: nowrap;
    margin-left:10px;
    padding:1px;
}

.searchtag dd span {background: url("../images/sprite.png") no-repeat scroll -126px -30px transparent; 
    cursor: pointer;
    display: inline-block;
    height: 12px;
    overflow: hidden;
    position: relative;
    top: 2px;
    width: 13px;

    }
    
    
.searchtag {
    position: relative;
}
.searchtag dt {
    left: 15px;
    position: absolute;
    top: 10px;
}
#keyword_list_div {}
#keyword_list_div span {color: #5C5C5C; background:#FEF9DE;height:22px;display: inline-block;margin:2px;padding:2px;min-width: 80px;text-align: center;}
.content_main table td {text-align: left;}

</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">添加|编辑产品包</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">产品基本信息</span> </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/campaign/su_pack_info.shtml" name="form01">
    <input name="id" value="${pack.id}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr>
        <td width="15%" style="border-left:none" align="right">产品名称：</td>
        <td width=""><input name="pack.packName" type="text" value="${pack.packName}" class="inputwidth01" id="campaign.adName" maxlength="30" /></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">接包公司：</td>
        <td width="">
           <select name="pack.customId">
               <c:forEach items="${customList}"  var="o">       
                     <option value="${o.id}" <c:if test="${o.id==pack.customId}">selected="selected"</c:if>>${o.comName}</option>
               </c:forEach>
           </select>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">联系方式：</td>
        <td width=""><input name="pack.mobile" type="text" value="${pack.mobile}" class="inputwidth01" id="pack.packOwner" maxlength="200" style="width:360px;" /></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">接包价格：</td>
        <td width=""><input name="pack.packPrice" type="text" value="${pack.packPrice}" class="inputwidth01" style="width:60px;" onkeypress="util.justNum([46]);" id="pack.packPrice" maxlength="30" />元</td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">投放渠道：</td>
        <td width="">
        <select name="pack.channelId">
                <option value="">请选择...</option>
                <c:forEach items="${list}" var="o"> 
                    <option  <c:if test="${o.userId==pack.channelId}">selected="selected"</c:if>  value="${o.userId}">${o.realName}</option>
                </c:forEach>
            </select>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">投放要求：</td>
        <td width=""><input name="pack.pushDesc" type="text" value="${pack.pushDesc}" class="inputwidth01" style="width:360px;" /></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">放包价格：</td>
        <td width=""><input name="pack.payPrice" type="text" value="${pack.payPrice}" class="inputwidth01" style="width:60px;" onkeypress="util.justNum([46]);" id="pack.packPrice" maxlength="30" />元</td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">投放状态：</td>
        <td width="">  
        <select name="pack.state" style="width:120px;">
            <option value="2"  <c:if test="${pack.state=='2'}">selected="selected"</c:if>>空闲</option>
            <option value="1"  <c:if test="${pack.state=='1'}">selected="selected"</c:if>>投放</option>
            <option value="0"  <c:if test="${pack.state=='0'}">selected="selected"</c:if>>暂停</option>
        </select>
        </td>
             </tr>
       <tr>
        <td width="15%" style="border-left:none" align="right">备注：</td>
        <td width="">
        <textarea name="pack.packDesc" rows="5" cols="60">${pack.packDesc}</textarea>
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit();"/></span></div>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
validate.addvalidte(document.form01,{
        rules:{
           "pack.packName":{checkNull:true},
           "pack.packPrice":{checkNull:true,isFloat:true}
           },
	    message:{}
	    });
</script>
